This is quire hard problem, nice solution, you rock.
NIce solution dude, Keep up the good work.
You need to be logged in before you can do that.