codeeval.com bit positions commit. added tests for later optimization