Removing min(), max() and pow()