Some studies on the analysis and design of optical communication and computation systems using Walsh and Block Pluse Functions