Linear resort implemned, closest pair is now O(n ln n)
More functionality added