Finished week 5
Rewrote the heap to be immutable