added benchmark.R
added initial tests