pi history