implemented and added new basic algorithm

- power(x, n)