make IsEmpty public
fix bug in print array
pq test.