Ruby solutions to Project Euler problem set