change short accessor functions to inline
add hierarchical clustering functions