Code for the paper 'Geodesic Finite Mixture Model'