Text this: Development of a Period Analysis Algorithm for Detecting Variable Stars in Time-Series Observational Data