Bucket brigade address decoding architecture for classical and quantum random access memories