Grade 3.1 U4: Algorithms|Make algorithms shorter