Totally Symmetric And Medial Quasigroups And Their Applications