Function isHeapPointer is added. This function checks is a pointer passed as parameter pointer in a heap or not.