K-means clustering and its real use case in security