Refactor queue, stack and sequential search structures