binary simulation for Power operation