Fast algorithm for an exact treatment of lattice quantum chromodynamics by Monte Carlo simulation on vector processors