Fix bug in queue:out/1, queue:out_r/1 that makes it O(N^2) in worst case

Running out and out_r one after another many times will copy one list
back and forth if another is empty. Change r2f and f2r to copy only half
of big list so such cases will happen more rarely