correctly handle 0^0
Merge pull request #17 from curtisbright/patch-2

correctly handle 0^0