Fixed missing else block

Else block was missing in head and tail maps, 
causing disruptive behavior when root is not leaf.
Fixed.
Merge pull request #4 from jeffswindle/subMaps

Fixed missing else block