Implementation of CSP constructors (Communication Sequence Process, i.e. go-like channels) in scala