alto imll - queue with two stacks
init loop detection algorithm