Detection of Buffer Overflow Attacks with Memoization-based Rule Set