Initial commit of the algorithms.

Most of this is based on an FAQ Michael Martin and Randolph Wang wrote
back in 1998 or so. The Mega Man 7 codes are from 2014.