SRM 145 DIV2 1500p use heap also can used in dijkstra