Actually I am only interested in the sequent 10 or 20 data.
No, your code is interested only in adjacent samples, so you need only a single sample buffer and the most recent sample.
you are a expert in arduino. can you give me your email?
No I'm not. No.