R - Playground, implementation of basic numeric algorithms