nm function

Nearest Mean Classification