Matrix factorizations and mirror symmetry: the cubic curve