Bin sorting DP not working