Still working on the distance based max_heap structure now...