Optimized the default in-memory RDF::Repository#query_pattern implementation.
Optimized the default in-memory RDF::Repository#query_pattern implementation.

ninjapanzer/rdf,ruby-rdf/rdf,PerfectMemory/rdf,jcoyne/rdf