First working prototype of BCP. Only queue size has been taken into account