A fast algorithm for investigations on the three-dimensional Ising model