Internal Pattern Matching in Small Space and Applications | Synapse