Modules

functions to make vectorized calculation easy.