Stability analysis of bimodular pin-ended slender rod