inference in structure learning the good bad and ugly 8550321