On computing the nucleolus of cooperative games