To add to AsylumAsylum's answer, whilst the answer is based on your work:
- It's demonstrating an improvement by using generics
- Right up front it credits you with the original idea which is important
This is all fair enough, above board, and is what is great about Stack Overflow. Be flattered, not offended.