CPU and GPU-accelerated Machine Learning Library