implemented the third algorithm proposed by Prof. Huang for full space material fitting.