Adaptive Algorithsm

Starting implementation for AA module