Full associativity first cut implementation done

Currenty works only for associativity = 1
Though correct looking code has been written for all associativites