replace xrange() wirh range() where we don't care about lazy evaluation
use print() in memoized function's tests