use kata method to practice algorithms