heap_peek: use unsigned type to iterate array