Improved hyp2f1 function