Preliminary implementation of immutable (persistent) heaps data structure (TODO: more tests, documentation)