Fixed allocate_all, added deallocate_all and benchmarks