Brandon McMullen delivered a masterclass performance, taking 3 wickets and scoring a century to lead Scotland to victory over Namibia in World Cup League Two cricket.