Novak Djokovic and Roger Federer were drawn together in a 'group of death' at the Barclays ATP World Tour Finals at the O2 Arena in London.