add fn to check if two numbers are within some max-difference