started implementing parallelization of classification. still buggy.