Mathematical principles behind Expectation Maximization (EM) algorithm and a simple implementation in R