F# Workflow and helper functions for working with a Stream at bit level