Use copy of array each time, new funs for closest pair, more testing and baseline built-in sort for compare.