High dimensional extension of the growth curve model and its application in genetics