Recursive Powers

Completely rewrote the powers script to be recursive just like bin2dec