added advance kmean ,minor refactoring and package arangment