adding the nutnr function as well as its associated unit and performance tests