add == to Stack
add queue and refactor code