Added Power function and tests.