tail recursion working.  probly needs more testing, but works with tail recursive factorial.