Assignment 1 Dimensionality Reduction Solution