K Core Decomposition Algorithm. [ An O(m) algorithm for core
decomposition of networks]