minor cleanup of normal-calculation algorithms