moved common helper methods to its own .h
implemented cl-mul0 for pure C matrix multiplication on CPU