Finding a tuple from list of tuples having a difference by one or two with input tuple