Implemented a working brute force algorithm it is now clear that our issues are not coming from rounding errors