Removed unused internal functions from algorithms.R.