Melrose High teacher Geoff McNamara wins PM's science prize