Wrote basic  collatz_eval function with asserts

still need to fix the problems and optimize, one of the asserts is
failing.