Constant space infinite itteration ... solution?