Completed a simple deallocateMemory() the complete testing is still developing.