Added implementation of simple forest algo