Computation of Boolean Matrix Chain Products in 3D ReRAM