now no need of giving categoricalFeatureInfo to build strategy,it is converted to a Option[Map[Int,Int]].If None is given as input..featureArity is automatically calculated in the randomForest class,which is passed to buildMetadata method to build the meta data.
some assertion bases on categericalFeaturesInfo has been moved from strategy class to randomForest class