US food giant H J Heinz has posted higher quarterly earnings, reflecting good sales growth.