Towards a Learning Theory of Cause-Effect Inference