New Algorithm for Attitude Determination Using GPS Signals