dynamic program: rob cut problem