Kinematical Lie Algebras and Invariant Functions of Algebras