initial stages of huffman tree creation, made class Pair for element/priority combinations