Added another version of a binary heap using pointers