The Harmonic Theory; A mathematical framework to build intelligent contextual and adaptive computing, cognition and sensory system