Power method implementation added