corrected pack2, pair returned in span function was revesed in tail
recursive implementation call
solved p10