His parents ' hastily-arranged marriage lasted barely two years and during a hectic , fatherless childhood he moved from Hawaii to Indonesia and back , raised mostly by his formidable grandmother Madelyn Dunham , who died just two days before Mr Obama was elected president .