added stratified k cross fold partition function. also various fixes related to copying of the class table