Combined my code with Professor Harer's code so I can quickly compute the persistence diagrams (my code) and get the generators for the 1D persistence points (my code)