Change implementation of heap
Rewrite prng with assembly.