make maxbound computation generic
version with main (for compiling/profiling)
Merge branch 'master' of github.com:apunktbau/co4