Loopy BP implementation update