more work on mergewords; added heap operations, need bounds checking still