Minor modifications to safthash.[ch]
Fixed bug in p-values priority queue