added an outline for pattern compilation after discussion with Ramana last Friday