Add extractSquareFreeNumbers method