The Three Gap Theorem in Persistent Homology