Added final version of closest pair implementation.