Implemented pushd and popd.