core: add Pow trait

Allows overloading of a Pow function, motivated by this [thread](https://mail.mozilla.org/pipermail/rust-dev/2014-July/010902.html).