Move some files from qcommon/ to qalgo/ and make them available for all modules