started using a file for memoization

changed hash to a map(RB Tree)
renamed hash to memo
added hash_key
chnaged hash_key to map_key
basic changes to get_score() to properly check frequency distribution based on string size.