code for implementing and testing the (deterministic) information bottleneck