Make 12.hs efficient enough to get the answer in a relatively short amount of time.