backup commit. about to calculate streamer mask for (most) time
converted detect_streamer to use sparse matrices. more efficient calculations also