added pointer to typename T
allowing for element updates outside the heap

(how to keep the heap properties intact?)