Find magnitude of a vector (#602)