Function to generate balanced partition(s) of a list of numbers (optionally associated with strings). Currently implemented algorithm is designed as a generalised version of Merten's complete anytime extension of the BLDM algorithm, with reference to the original CKK algorithm.
NGMbalance.py is a sample demonstrating how the algo may be used to e.g. balance teams for a game (using ranks.txt and players.txt as input).