Solution to prefix compression problem added