add likelihood method and openmp support