codeeval.com the major element commit. added test cases