Vectorize implementation of decodeGenotype method.