He earned a master’s degree in mathematics from the University of Waterloo by the time he was 19, per Ontario court documents