optimization on getSingleton from Robin:
optimization on getSingleton from Robin:

getSingleton currently uses a pair of cell arrays: uidStore and objectStore and
uses isMember to look up UIDs in the store. This could be much faster and more
idiomatic with a hash map instead. The attached patch does so and resulted in a
10X speed improvement over 100 calls to getSingleton.

git-svn-id: cf55bc44fb097054a32fc70455a459c940dbbffc@7251 c9849af7-e679-4ec6-a44e-fc146a885bd3

psiorx/drake,sheim/drake,edowson/drake,thientu/drake,edowson/drake,tkoolen/drake,sheim/drake,billhoffman/drake,tkoolen/drake,crogers3/drake,manuelli/drake,tkoolen/drake,thientu/drake,scottviteri/drake,scottviteri/drake,hanssusilo/drake,astrorog/drake,psiorx/drake,billhoffman/drake,billhoffman/drake,edowson/drake,scottviteri/drake,billhoffman/drake,hanssusilo/drake,crogers3/drake,tkoolen/drake,thientu/drake,sheim/drake,astrorog/drake,scottviteri/drake,astrorog/drake,manuelli/drake,edowson/drake,astrorog/drake,crogers3/drake,sheim/drake,billhoffman/drake,thientu/drake,edowson/drake,hanssusilo/drake,edowson/drake,sheim/drake,scottviteri/drake,billhoffman/drake,crogers3/drake,crogers3/drake,hanssusilo/drake,psiorx/drake,hanssusilo/drake,astrorog/drake,thientu/drake,astrorog/drake,edowson/drake,scottviteri/drake,sheim/drake,manuelli/drake,manuelli/drake,tkoolen/drake,scottviteri/drake,psiorx/drake,thientu/drake,astrorog/drake,psiorx/drake,hanssusilo/drake,hanssusilo/drake,manuelli/drake,manuelli/drake,psiorx/drake,tkoolen/drake,crogers3/drake,crogers3/drake,psiorx/drake,hanssusilo/drake,sheim/drake,crogers3/drake,manuelli/drake,thientu/drake,tkoolen/drake,edowson/drake,psiorx/drake,sheim/drake,billhoffman/drake,billhoffman/drake