One Dimensional Optical Orthogonal Coding: Optimal Codes