Persistent Fast Amortized Stack and Queue Data Structures