how does store and forward switching works