added forest splitting code initial commit