Remove rmath dependency and update for changes to combinations in Base