add cython code for likelihood evaluation for iid samples