updating p50 sol and tests with 2 queue immutable impl