big patch: Added 'heap hande' into all vertexes, it has to be templated, rearranged rest of the code to work with templated graphs