implement memxxx and local kernel. no openmp. speed is 14