Added a rudimentry ValueHeap
The heap is now implemented in many statements.
Added the valueHeap to cloning.