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