finding domain and range from table of values or coordinates