All-optical parallel Boolean algebra