Classification of topological phonons in linear mechanical metamaterials