An experimental library simulating schastic computing