Added some fix in device vector when m_size is 0 and faster cmp array