Add partitions function
Update README for partitions
Rename and add tests for the partitions function

As there is already an integer_partitions function in Base which
does basically the same thing, it is better to have this as an
extra method of it.
Rename types to use CamelCase