Add power function
Add factorial function

Also fixed a bug in Power class