fixed benchmarking, optimized outputs
added demo case for matrix search