Cooking lentils and rice