Excercise implementation of Priority Queue