Determine perpendicular vectors (#610)