Spatial Translation Transformation in 2D - Coding problem | OneNoughtOne