Title: Optical bistability, beam competition and associative memory based on nematic liquid crystais and photorefractive crystals