Android Stack Overflow Error Recursive Function Example C