codeeval.com Swap Elements commit. added test cases for later optimization