Quantum Latin Squares And Quantum Functions : Applications In Quantum Information