What are the conditions that guarantee a quadrilateral a parallelogram?