Efficient machine learning library