Quasicyclic codes from a finite affine plane