Novel Techniques for a Cooperative Positioning Approach Based on Peer-to-Peer Networks