Solutions for problem set 1 from cs50x