practice of lander green algorithm 1239541