A British teenager has been jailed for at least 52 years for murdering three girls at a Taylor Swift-themed dance class.