add null elem as a subclass of heap objects which is used to handle null pointers