Changed the functions fastMalloc/fastFree to track memory consumption.

Added functions to get the current and maximal memory consumption.
Made debug changes (some commented logs).
Made some debug changes

-- particularly, turned off debugging memory consumption.
Removed trailing whitespaces.