Added first R implementations