cool, I just need some hints on the algorithm , or rather a better way of writing...

shouldn't have any problem writing the code myself

thanks again, lets hope my weekend will be fruitful