adding two solution bruteforce & kd tree