QTL mapping for function valued trait data