small fix to division in HeapPage inspired by piazza post