Fixed DPTable to work for big numbers