An algebraic approach to the classification of some non-linear codes