Add implementation of GMM written by Pluskid.