Family Dollar posts sales and profit improvement