Calculate glycemic index of foods