Canadian hacker gets five years in Yahoo breach