codeeval.com Word To Digit commit. Added test cases for later optimizations