Implemented quantum_alloc() and quantum_dealloc().
Merge branch 'quantum_alloc' into devel