added monte carlo pi approximation and square root approximation