recursive closest pair implementation
visual studio junk