Working version of binary heap sort!