fixing one bug. The memory for vector _vec_lnK should be allocated.