i want to find out the difference between the btree index and hash index and how exactly the hash index work.