nutrition algorithms