1) Implemented AIS algorithm and fixed the performance issues with it. 2) Abstracted some of the common methods to MiningUtils class.