Added exponentiate function to header