Blake implementation in C

get rid of all the globals.