N-Adaptive Ritz Method: A Neural Network Enriched Partition of Unity for Boundary Value Problems