A teenager has been jailed for nine years and four months for killing three of his friends after inhaling nitrous oxide and travelling at speeds of more than 100mph.