What are the criteria for a quadrilateral to be considered a parallelogram?