Generalized order parameter calculation from molecular dynamics. Algorythm was proposed by Dubyna Volodymyr, Institute of Molecular Biology and Genetics, Kyiv, Ukraine