Caps take a shootout win over Montreal