High throughput determination of sequence-function relationships in protein and RNA