Added implementation for short-short key value pairs, and added sorting
to heap