Added Secant function
reorganized function order