added serial elementwise matrix operations