Added brute force solution for #14.

Too slow to be acceptable.