Some implemented codes from algorithmic or exercises