Added additional documentation

Tested out doctest on the binary_partition function.