Ha! priority queue implemented in C, first shot