Adding factorial recursive function
Further improvements to p6 added functions