add common module for useful functions collection

10 code done
9 code done
number too large problem, considering using numpy