Morse code algorithm lab