Implementation of balanced photo gallery (based on partition problem
solving dynamic programming algorithm). The code is based on the
explanations described on www.crispymtn.com website.