A Data Replication Scheme based on Primary Copy for Ensuring Data Consistency in Mobile Ad hoc Networks