Real time generation of humanoid robot optimal gait for going upstairs using intelligent algorithms | Synapse