In the post ww2 time period the purpose of both the North Atlantic treaty organization (NATO) and the Warsaw Pact was to