Fixed the bug!

I previously made the error of making my queue FILO. I changed it to
FIFO so now results are more accurate.