Forward selection & backwards optimization functions added