fix a bug in pop when there're 2 elements in heap
Fixed comparison of pos to the pointer of heap instead of the size of the heap, added to the menu, build uses -Wall