yet another implementation of data log likelihood using my own log(..)
since data likelihood may not be working correctly for now reverting to the version where iteration is done a fixed number of times