Solve a classic problem of finding abnormal weights on a balance.

The code was written around 2007. I don't even remember how I solved this problem, and I can't even read my own code.

It still works, you can find a demo at my blog