Hello What appears to be the problem? It compiles and produces the right results without any problems on my machine and is even quite fast. I would like to solve the problem but without any clue what is going wrong... Same with statistics. - Einar Karttunen