Sometimes writing a program causes leaning the algorithm better