in reply to Out of Memory

Use sliding window technique as demonstrated in Matching in huge files