Armada algorithm for machine learning