Thanks! I got it working now and have a better understanding of how arrays work. Thanks for everyone's help! downs Wrote: > > void swap(ref T a, ref T b) { T c=a; a=b; b=c; } > Oopsie. Should be void swap(T)(ref T a, ref T b)