Added weight to the LabeledPoint structure and fixed offset bug