Pure phase correlator with photorefractive filter memory