simple pipeline and cache support

1. add a simple pipeline
2. add a random policy cache