Adaptive Self-improvement LLM Agentic System for ML Library Development