Moving out common.math package to libsam (omalsa04.github.com/libsam)