COMP: isnan needs to be in the std namespace.

ENH: got rid of redundant vector normalization