more optimizing
optimized by basically reducing this problem to a 9 digit problem and storing sums of squares that sum to a certian value in dicts