Added test class for Pi algorithms