scala solution.

Requires big.txt in `src/main/resources/`