codeeval.com find a writer commit. added tests for later optimization