Implemented priority queue [with help :( ]

Had trouble in reordering elements