More testing

Change-Id: I45dc9dcbb47ba33b2de4a6bd1dbfc45a449ef89e
Clean up

Change-Id: Ib6d80d762bbb594f9cde87785aef12b995477fee
Parallelize tasks

Change-Id: I8ead90fa91b18bd7fbf75b9eb8b0a7f4a9cbb30c
Rewrite k-means API

Change-Id: If92b9691d97aca3de96f576ffff1b80467402000