Add MeanLayer and corresponding testing program.