Several changes: 1. getSimilar function for kdTree 2.case combine function