Memory usage analysis of binary clustering algorithm