Hi, Thanks for the pointer to the source file. Unfortunately, I don't know any java at all. Can someone tell me the basic algorithm in mathematic language? Thanks, TimSC