Periodic TASEP with general initial conditions