hanoi streams (scala)