made the c version pretty darn good
updated repo files