wrote a base class for Algorithm

fun times with Jeremy :)