Added bools and getters to store whether or not the node is a leaf