remove.ids function

Removes IDs with NA in a list of adjacency matrices optimally