Create Find minimum distance between two numbers