Fix: problems with compile and find heap's index, inside remove method