my solutions to codeeval