Added phi method

Added phi method from [Dowker-Thistlethwaite, page 24].