Brain algorithm added