Nature inspired optimization and its application to engineering