[math-fun] min(x, y) and sorting without if(), mod without divide or if