Practicing programs for Algorithms