Queue theory simulation