added docstring to heap class