Use foldl1 in lfpow instead of recursion