length of dp vector