Added check for parent before looking at the siblings in the recursive algorithm
Added check for parent before looking at the siblings in the recursive algorithm

EivindEE/Madame,EivindEE/Madame,EivindEE/Madame