added a brute force optimization function
added function get_assortment_variance
replaced function get_assortment_variance by more general get_variance
Added comments to example file