Heap data structure in 6502 assembler