Stav dette: An efficient ring polymer contraction scheme for imaginary time path integral simulations.