Some solutions to codeeval problems