codeeval.com hex to decimal commit. added test cases for later optimization.