Added solution to problem from introduction to algorithms