Chudnvosky function now has better implementation