add the MatrixOperations class which will be necessary for multiprocessing
prepare sentence_stream for multiprocessing
see previous commit
first attempt to allow multithreading