Speed optimisation in buffer.R

Batch computation using vectors instead of loop iteration when computing
buffer parameters