my problem is a good algorithm.i can convert the algorithm to picbasic easily.