Sparse Matrix to Decimal Coding (SMDC) Algorithm