Novel Intrusion Detection and Prevention Techniques for Mobile Ad hoc Networks