Lattice based communication P systems with applications in cluster analysis