added TRENDNAN function -- Timo Stripf