implement A in 4x4 for the curve interpolation experiment.