use instanceof instead of converting java-class to string and comparing
strings
resultwrapper stores doc and score in one object to make it easier to
reduce (i.e. if there is no object in db having the id from the index
don't include it in the result)
resultwrapper.reduce() added - proxying reduce to it's array of results
SimpleIndex.query() doesn't calculate querytime anymore. if needed
implement it outside
added test if query throws error if called with none-query-object
Merge pull request #6 from kmfdm1/master

Use instanceof instead of toString() and string-comparison, removed query-time-mesuring, added resultwrapper.reduce