HA-CIDS: A Hierarchical and Autonomous IDS for Cloud Systems