Added a recursive templatized power calculator.