Add simple integer-only pow() implementation