bug fix for normalized()

normalized() returned (nan, nan) if length()==0