Algorytm Ramera-Douglasa-Peuckera