added support for 4 paramter weighting in query ball tree wcounts