Two-dimensional control systems: application to the CD and MD control problem