Parallel boolean matrix multiplication in linear time using rectifying memristors