Brute force WDP solver working