Quasi-perfect linear codes from plane cubics