When you look at the 3 mastery trees, at the top left of each one there will be a small icon. The tree you did not use will have a lock, the two trees you did use will have a circular arrow. Click on one of those arrows and it will ask if you want to reset your masteries.