added heap object to library.
now heap object has both min heap (always smallest element is returned) and max heap (always largest element is returned)