I'd like to thank everyone for their contributions.
Even if supplied solution did not give desired results, they did give me different ways of looking at problems and , in the end, that is just as helpful because i will be able to use those strategies in future problems.
Thanks all :w00t: