# common Common algorithms and functions