Implement a sliding window algorithm to search for palindromes or specific patterns within a large body of text.
Implement find_palindromes(text, min_length, max_length) to return every palindromic substring whose length is within the inclusive range. Return each match as [start, end], using a zero-based start index and an exclusive end index. Sort results by start index, then end index.
text is a string. min_length and max_length are integers. Return a list of two-element lists.
def find_palindromes(text, min_length, max_length):