Codes for CDSM 2014 MTRX2014 Hackerrank