extract_gaps function

Extract gap episodes from the data