started implementation of the fire algorithm in cpp