Prototype implementation of algorithms in R