Added a Logging module and some debugging prints at allocation and deallocation sites