Cleaned up the code and created a minimal sufficient example of fielder
clustering in C that uses R.