updated bench script, vectorized implementation, small changes