Memory profiling class

originally developed for idXML::load but can be used for anything.

MacOSX: still needs fixing (dont have a system to test on)
Win & Linux: seem fine