American skier Alex Ferreira ends his Olympic career with a gold medal in the men's freestyle ski halfpipe, securing a historic win.