Implemented 2.1 task

Implemented 2.1 task
Find matrix x-s