Crystal Search And Replace (CSAR): Find instances of patterns in crystals and replace them with user defined patterns