Solution to the optimal morse code problem.