Calculating how many rectangles that can fit in a circle and drawing it with WPF