ParentFull threadInnocentB·That's indeed a fun little problem, thanks!For the lazy, solutions are at http://pastebin.com/XJZTFGHPView on HN