Start implementation of the partitions commands
Improve code and remove memory leak
Add unique_heap_array to simplify code
Use array template to constant sized array
Add iteration support to array and unique_heap_array