tweaks to leak tracking and histogram interface; added sample for leak tracking