Various Recursion Functions To Calculate Array Values