Square area and side length estimation