Added pow function closes #7