APLA: Indexing Arbitrary Probability Distributions