Add solution to problem 9: pack.
Add solution to problem 10: run-length encoding.