Replacing the linear search in modifyNamedScope.
Merge pull request #4 from favonia/speedup1

Replacing the linear search in modifyNamedScope.