Two bags containing what the police believe to be human remains were discovered yesterday afternoon next to a stairway leading to the Long Island Rail Road tracks near Ocean Avenue in Midwood , Brooklyn , the police said .