Two Mechanisms of Human Contingency Learning