Fixed Mat1D and added a method to translate X