pyopencl working version working for NxM matrices