title: Magento only parent category id
body: <p>Hello i need only top level categories id that is i need only parent category id not the subcategories. such as :</p>
  
  <p>Root Category (No Need of its ID)</p>
  
  <ol>
  <li>Furniture (only this id)
  a. living room (not this subcategories)
  b. Bedroom (not this one)</li>
  </ol>
  
  <p>I need Only top level categories id not the children Please help me doing so Thanks</p>