add solution to problem 19
update solution to rproblem 16
add solution to problem 20