Optimization to N^2 from N^3 time is complete for function ASKAT()