Principle and Implementation of Maximum Likelihood Classification Algorithm