Implements a mixture of linear regressions in R Shiny