Fixed Stack and List iterator and moved util code to utils.go