Blake implementation in C

globals are bad. very bad.