-Fixed a bug in addP that caused infinite loop if Q + P would result in the infinite element