Working on #130.

I'm inclined to believe that the algorithm is correct.

It deals with matrixes but in no way it goes thru all its elements. The algorithm is basically a recursive O(n) procedure.

UVa gives TLE to my question but honestly, WFT?