added k-means algorithm, to check if side disambiguation is needed.
Future work.