Maths to be compulsory for NSW students