Implemented basic compression algorithm

Uses a single priority queue. Currently takes no measure to limit
codeword variability