Practicing implementing algorithms