OperationSelector implemented

OperationSelector implemented. Fixing #383 

It's now possible to register operations to be selected with various probabilities without worrying about algorithm behind it.
A worker can just use the selector without knowing about probabilities at all.