add a matrix algorithm program