"Markovian Gradient"-based IA implemented

It is functional but have some mistakes. I will fix them, but not today.