Added standard test functions

Added rosenbrock, rastrigin and shwefel. Replaced the old BCD with a
more efficient version (saw a 10x improvement converting a 1000000 bit
number!!)