Changed column assignation algorithm in order to get almost same size for columns