My attempt at a chaos-based encryption algorithm