Commit for first algorithms exercise