KD tree for analysis and design of fs algorithm