Vectorised Glucose Inversion Algorithm

Final version, commented and licensed.