Fast switching of bistable magnetic nanowires through collective spin reversal