Updated doc
Re-implemented generator algorithms  in terms of infinite streams