Gordon, McDermott work out for Celtics