starting dijkstra function
added compare operator for heap