a program for reaserch heap