added examples, changed return ordering for string lengths > max_distance