Ancient superpredator that lived 328 million years ago was 'the T. rex of its time'