introduced key in Leaf + singleton function
changed from Int to real datatype as key for V3
specialized calls -> decent performance