Rochester district lays off 78 teachers