Hw1 from CV class. Matrix form of the transformation