Works fine for 200 200 but get stack overflow for larger values
It works, but it is super slow/ mb infinite for large resource values