Practicing algorithms