This episode's story is most likely based on Mary bell. The 10 year old girl who murdered a 5 Year old boy. Like the character Rose Shaw Bell also had an a abusive upbringing
The apartment complex of the crime scene is the same one used for the final shootout in the movie The Veteran. The garage doors and stairways are quite distinctive