add doc strings
try to merge heaps.py