made bubble sort generic. next add trie tests