On the number of cycles and perfect matchings in planar graphs -- thesis source and accompanying programs