Working on the distance based max_heap structure now...