I failed pretty bad can't believe he asked the K Closest Points... Use a implemeneted heap, they expect that, don't try to memorize alternative way