cross validation added
added grid cross validation
fixed bug