implemented classifier test + train funcitons with the CART algorithm.