9 sec performance improvement (500 tree) by removing repeated created of 2d vectors
baseDataSet was changed to a reference to minimise memory copy