Separated to Common and UI projects

Structure MatrixCoordinates refactored