C implementation appears to work
yep, works